<?php include './application/views/zhs_mobile/header.php';?>

<script>
function account_log_more(){
	var page = parseInt(document.getElementById('account_log_page').value);
	var str = "";
	$.ajax({
		type: "GET",
		url: "/zhs_mobile/acenter/account_log_more/"+page,
		data: "",
		success: function(ret){
			if(ret.length>0){
		        for(var i=0;i<ret.length;i++){
			        if(i%2 != 0) str += "<tr style='background-color: rgb(237, 237, 237);'>";
			        else str += "<tr>";
					str += "<td>"+ret[i].ftype+"</td>";
					str += "<td>"+" ￥ "+ret[i].money+"</td>";
					str += "<td>"+ret[i].add_time+"</td>";
					str += "</tr>";
		        }
		        page = page+ret.length;
		    	document.getElementById('account_log_page').value=page;
		        var oldstr = document.getElementById('account_log_tab').innerHTML;
		    	document.getElementById('account_log_tab').innerHTML = oldstr+str;
			}
		},
		dataType: "json"
	});
}
</script>
<section class="invbd main">
   <h3 class="logtitle">资金明细</h3>
   <table class="wqtqb mt">
     <thead>
       <tr>
         <th>操作类型</th>
         <th>操作金额</th>
         <th>操作时间</th>
       </tr>
     </thead>
     <tbody  id="account_log_tab">
       <?php foreach ($account_log_list as $acnt_log) {?>
        <tr>
         <td><?php echo $acnt_log['ftype'];?></td>
         <td>￥<?php echo $acnt_log['money'];?></td>
         <td> <?php  echo $acnt_log['add_time'];?> </td>
       </tr>
       <?php }?>
     </tbody>
   </table>
   <input type="hidden" id="account_log_page" value="<?php echo $page;?>"/>
	<a href="javascript:account_log_more();" class="membtn3">查看更多 &gt;&gt;</a>
   <br/><br/><br/><br/><br/><br/>
</section>
<?php include './application/views/zhs_mobile/footer.php';?>
